<template>
  <section class="container">
    <div>
      <div class="icon-icon iconfont"></div>
      <h1 class="title">
        cook-nuxt
      </h1>
      <h2 class="subtitle">
        欢迎使用小厨房服务！
      </h2>
      <a class="links" href="/cook">
        创建智能菜谱
      </a>
      <home-footer></home-footer>
    </div>
  </section>
</template>

<script>
import homeFooter from '../components/footer.vue'
import axios from "axios"
export default {
  components: {
      homeFooter
  },
  data(){
      return {
          messages:''
      }
  },
  /*async asyncData({ error }) {
    try {
      let res = await axios.get('http://localhost:3000/api')
      return {
        post: res.data.message
      }
    } catch(err){
    }
  },*/
  mounted(){
      const that = this
  }
}
</script>

<style lang="scss">
  @import url("../assets/icon/iconfont.css");
  @import "../assets/base.scss";

  .container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 1 */
  display: block;
  font-weight: 300;
  font-size: 22px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 28px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}

</style>
